package cn.mafangui.hotel.service;

import cn.mafangui.hotel.exception.HotelException;
import cn.mafangui.hotel.req.RoomQueryReq;
import cn.mafangui.hotel.entity.Room;

import java.util.List;


public interface RoomService {
    int insert(Room room);
    int delete(int roomId);
    int update(Room room);
    Room selectById(int roomId);

    /**
     * 根据 房间号、房间类型、房间状态 查询房间
     * @param req
     * @return
     */
    List<Room> query(RoomQueryReq req);

    Room selectByNumber(String roomNumber);
    List<Room> selectAll();

    int orderRoom(int typeId);
    int inRoom(int typeId) throws HotelException;
    int outRoom(int typeId);
}
